var e = require("../../common/vendor.js"), r = require("../../api/ajax.js"), s = require("../../uni_modules/z-paging/components/z-paging/js/z-paging-mixin.js");

require("../../api/service.js"), require("../../utils/luch-request/core/Request.js"), 
require("../../utils/luch-request/core/dispatchRequest.js"), require("../../utils/luch-request/adapters/index.js"), 
require("../../utils/luch-request/helpers/buildURL.js"), require("../../utils/luch-request/utils.js"), 
require("../../utils/luch-request/core/buildFullPath.js"), require("../../utils/luch-request/helpers/isAbsoluteURL.js"), 
require("../../utils/luch-request/helpers/combineURLs.js"), require("../../utils/luch-request/core/settle.js"), 
require("../../utils/luch-request/core/InterceptorManager.js"), require("../../utils/luch-request/core/mergeConfig.js"), 
require("../../utils/luch-request/core/defaults.js"), require("../../utils/luch-request/utils/clone.js"), 
require("../../uni_modules/u-store/js_sdk/Storage.js"), require("../../config/config.js");

var t = {
    mixins: [ s.ZPMixin ],
    props: {
        id: {
            type: String
        }
    },
    setup: function(e) {
        return console.log("props", e), {
            id: e.id
        };
    },
    data: function() {
        return {
            keywords: "",
            dataList: [],
            loading: !0
        };
    },
    methods: {
        change: function(e) {
            var r = this;
            this.keywords = e, setTimeout(function() {
                r.$refs.paging.reload();
            }, 500);
        },
        queryList: function(e, s) {
            var t = this;
            r.doPostUrl("car.Specs/index", {
                series_id: this.id,
                keywords: this.keywords,
                page: e,
                limit: s
            }).then(function(e) {
                console.log("queryList", e.data.data), t.$refs.paging.complete(e.data.data);
            });
        },
        goSpecs: function(r) {
            e.index.navigateTo({
                url: "/pages/car/detail?id=" + r.series_id
            });
        }
    }
};

Array || (e.resolveComponent("uv-search") + e.resolveComponent("uv-list-item") + e.resolveComponent("uv-list") + e.resolveComponent("z-paging"))(), 
Math || (function() {
    return "../../uni_modules/uv-search/components/uv-search/uv-search.js";
} + function() {
    return "../../uni_modules/uv-list/components/uv-list-item/uv-list-item.js";
} + function() {
    return "../../uni_modules/uv-list/components/uv-list/uv-list.js";
} + function() {
    return "../../uni_modules/z-paging/components/z-paging/z-paging.js";
})();

var i = e._export_sfc(t, [ [ "render", function(r, s, t, i, u, n) {
    var o = this;
    return {
        a: e.o(n.change),
        b: e.o(function(e) {
            return u.keywords = e;
        }),
        c: e.p({
            modelValue: u.keywords
        }),
        d: e.f(u.dataList, function(r, s, t) {
            return {
                a: s,
                b: e.o(function(e) {
                    return n.goSpecs(r);
                }, s),
                c: "186813fc-3-" + t + ",186813fc-2",
                d: e.p({
                    title: r.title,
                    thumb: o.siteUrl + "/uploads/car/brand/" + r.brand_id + ".png",
                    note: r.firms_name + " 价格:" + r.price + "元",
                    border: !0,
                    "show-arrow": !0,
                    clickable: !0,
                    rightText: r.year + "年款"
                })
            };
        }),
        e: e.sr("paging", "186813fc-0"),
        f: e.o(n.queryList),
        g: e.o(function(e) {
            return u.dataList = e;
        }),
        h: e.p({
            modelValue: u.dataList
        })
    };
} ] ]);

wx.createPage(i);